package Demo3;

public class Robot implements IRunning,ISwimming {
    public String name;
    public Robot(String name){
        this.name=name;
    }
    public void run(){
        System.out.println(this.name+"在跑步。。。。");
    }
    public void swim(){
        System.out.println(this.name+"在游泳。。。");
    }
}
